﻿@namespace LaserMark.Components.Components


<ListView TItem="Opts" OnQueryAsync="OnQueryAsync" OnListViewItemClick="OnListViewItemClick">
    <HeaderTemplate>
        <div>任务列表</div>
    </HeaderTemplate>
    <BodyTemplate>
        <Tooltip Title="@context.OptId">
            <Card>
                <BodyTemplate>
                    <div class="row">
                        <div class="col-2">
                            <Checkbox @bind-Value="@context.OptProduceState" StopPropagation="true" OnValueChanged="v => OnValueChanged(v, context)"></Checkbox>
                        </div>
                        <div class="col-10">
                            @context.OptId
                        </div>
                    </div>
                </BodyTemplate>
            </Card>
        </Tooltip>
    </BodyTemplate>
</ListView>
<TasksViewFooter @bind-Value="@Opts"></TasksViewFooter>
